/*    */ package blockbuster.components.expiration;
/*    */ 
/*    */ import blockbuster.components.IComponentParticleUpdate;
/*    */ import blockbuster.emitter.BedrockEmitter;
/*    */ import blockbuster.emitter.BedrockParticle;
/*    */ import net.minecraft.block.Block;
/*    */ 
/*    */ public class BedrockComponentExpireNotInBlocks
/*    */   extends BedrockComponentExpireBlocks
/*    */   implements IComponentParticleUpdate
/*    */ {
/*    */   public void update(BedrockEmitter emitter, BedrockParticle particle) {
/* 13 */     if (particle.dead || emitter.world == null) {
/*    */       return;
/*    */     }
/*    */ 
/*    */     
/* 18 */     Block current = getBlock(emitter, particle);
/*    */     
/* 20 */     for (Block block : this.blocks) {
/*    */       
/* 22 */       if (block == current) {
/*    */         return;
/*    */       }
/*    */     } 
/*    */ 
/*    */     
/* 28 */     particle.dead = true;
/*    */   }
/*    */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\blockbuster\components\expiration\BedrockComponentExpireNotInBlocks.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */